package com.site.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.site.domain.TypicalCases;
import com.site.persistence.TypicalCasesMapper;
import com.site.service.TypicalCasesService;

/**
 * Purpose: 案例
 * @author: liangjun
 * @since: JDK 1.6
 * @date: 2015年5月25日
 */
@Service
public class TypicalCasesServiceImpl implements TypicalCasesService {
	
	@Autowired
	private TypicalCasesMapper typicalCasesMapper;

	public List<TypicalCases> findTypicalCases() throws Exception {
		// TODO Auto-generated method stub
		return typicalCasesMapper.findTypicalCases();
	}

	public TypicalCases getTypicalCasesById(int id) throws Exception {
		// TODO Auto-generated method stub
		return typicalCasesMapper.getTypicalCasesById(id);
	}

	public void addTypicalCases(TypicalCases typicalCases) throws Exception {
		// TODO Auto-generated method stub
		typicalCasesMapper.addTypicalCases(typicalCases);
	}

	public void updTypicalCases(TypicalCases typicalCases) throws Exception {
		// TODO Auto-generated method stub
		typicalCasesMapper.updTypicalCases(typicalCases);
	}

	public void delTypicalCasesById(int id) throws Exception {
		// TODO Auto-generated method stub
		typicalCasesMapper.delTypicalCasesById(id);
	}	

}
